#ifndef __EC_IT8528_RW__
#define __EC_IT8528_RW__

class CEcIt8528Rw
{
public:
	static CEcIt8528Rw* getInstance();

private:
	CEcIt8528Rw();

	virtual ~CEcIt8528Rw();

private:
	unsigned char ec_inb( unsigned short int port);
	void ec_outb( unsigned char value, unsigned short int port);    

public:
    int read_PNPCFG(int nbase_addrpara);
    int read_ECIO_RAM(int nbase_addrpara);
    int ecio_write_byte(unsigned short Index,int data);
    int ecio_read_byte(unsigned short Index);

    int pnp_read_byte(int Index);
    int pnp_write_byte(int Index,int data);

private:
    int m_fd;

    static CEcIt8528Rw* m_pInstance;

};

#endif

